package com.kamistoat.meimeistore.coupon.feign;

import com.kamistoat.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("meimeistore-web-backstage-seckill")
public interface SecKillFeignService {
    /**
     * 删除redis中已经缓存的原秒杀
     * 并重新检查相同id是否是3天以内的秒杀，如果是，立刻上架
     * @param redisSessionKeyList
     * @return
     */
    @GetMapping("meimeistoreseckill/delete")
    R delete_ReUp_RedisSessions(@RequestParam List<String> redisSessionKeyList);
}
